<?php

defined('PHPFOX') or exit('NO DICE!');

class Pages_Component_Block_Member extends Phpfox_Component
{
    public function process()
    {
    	$mId = $this->request()->getInt('req2');
		if (!($aPage = Phpfox::getService('pages')->getForView($mId)))
		{
			return Phpfox_Error::display(Phpfox::getPhrase('pages.the_page_you_are_looking_for_cannot_be_found'));
		}
    	$aPages = Phpfox::getService("pages")->getCurrentInvitesAddUser($aPage['page_id']);
		
        $this->template()->assign(array(
            'sHeader' => 'Members',
            'aPages' => $aPages,
            'page_id' => $aPage['page_id'],
            'iCnt' => count($aPages),		
        ));
        return 'block';
    }
}

?>